export const FramDate = d=>{
    if(typeof d == "number" && !isNaN(d)){
        let time = new Date(d);
        let year = time.getFullYear();
        let month = (time.getMonth() + 1).toString().padStart(2,"0");
        let date = time.getDate().toString().padStart(2,"0");
        let hour = time.getHours().toString().padStart(2,"0");
        let minutes = time.getMinutes().toString().padStart(2,"0");
        let second = time.getSeconds().toString().padStart(2,"0");
        return [year,month,date].join("-") + " " + [hour,minutes,second].join(":");
    } else {
        return "";
    }
}